package com.before;

/**
 * @author wzm
 * @create 2023-03-14 10:44
 */
public class Father {

    //work理解为访问Servlet就会执行  service
    public void work(){
        System.out.println("该方法用来执行子类中的功能");

        System.out.println(this);

        Son son = new Son();

        //login
        son.login();

        //register
        son.register();

    }

}
